Support for mounting the hard disks with ogconfig-cli
Extra hard disks can be mounted in the Lighthouse VM by adding them to the configuration. Each new disk must have a partition created and formatted. Partitions can be created using fdisk
or cfdisk
, and should be formatted using the ext4 filesystem
, using the mkfs.ext4
command:
root@lighthouse:~# mkfs.ext4 /dev/sdb1
The directory in which to mount the filesystem must be created. In general, new filesystems should be mounted in the provided mountpoint
of /mnt/au
. Any other filesystems should be mounted within the filesystem mounted here. The UUID can be obtained by running blkid
. This will output the UUID's of all the extra hard disks on the system. When referencing the UUID, ensure the entire UUID is enclosed within quote marks like this:
"UUID=33464920-f54f-46b6-bd84-12f76eeb92da"
else the command will not run correctly.
Add the information to the configuration system using ogconfig-cli
as follows, modifying the path for the specific situation.
ogcfg> var m !append system.mountpoints map
{8435270-fb39-11e7-8fcf-4fa11570959}: Map <>
ogcfg> set {m}.node "UUID=33464920-f54f-46b6-bd84-12f76eeb92da"{b8c37c6-fb39-11e7-971c-23517b19319}: String </dev/sdb1>
ogcfg> set {m}.path "/mnt/aux"
{1fb50d8-fb39-11e7-994c-0f10b09cbd4}: String </mnt/aux>
ogcfg> push
OK